<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%@ page import="org.vectrics.recruiter.job.Job" %>
<%@ page import="org.vectrics.recruiter.*" %>
<%@ page import="org.vectrics.user.*" %>
<%@ page import="org.vectrics.SystemException" %>
<%@ page import="org.vectrics.provider.CoreServiceLocator" %>

<%
	String jobId = request.getParameter("jobId");
	
	if ((jobId == null) || (jobId.trim().length() == 0)) {
		jobId = (String)request.getAttribute("jobId");
	}
		
	if (jobId == null)
		throw new SystemException("JobId is null");
		
	String candidateMgrLink = request.getContextPath() + "/admin/jobs/candidate/index.do?jobId=" + jobId;	
	
	Long jobIdLong = new Long(jobId);
	Job job = RecruitServiceLocator.getJobProvider().findJob(jobIdLong);
	if (job == null) {
		throw new SystemException("Could not find job, id = " + jobId);
	}
%>


<table>
	<tr>
		<td>
			<vectrics:recruiterJobView jobId="<%=jobId%>"  />
		</td>
		<td valign="top" align="right">
			<vectrics:jobViewSubMenu jobId="<%=jobId%>" 
				permissionCandidates="view_JO_candidates"
				permissionDetails="view_JO_details"
				permissionStatus="change_status_of_JO"
			/>
		</td>
	</tr>
</table>

